<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group([
    'namespace' =>  'Api'
],function () {

    /**
     * 蜗牛数据
     */
    Route::post("/snail/uploadPolicy","SnailController@uploadPolicy");

    Route::get("/test/test","TestController@test");

    //同程特政回调
    Route::post("/tc/notify","TcNotifyController@notify");
    //同程普政回调
    Route::post("/tc/commonNotify","TcNotifyController@commonNotify");

    //去哪政策回调
    Route::post("/qn/notify","QnNotifyController@notify");

    //任务处理
    Route::post("/task/notify","TaskController@notify");

    //政策详情获取
    Route::get("/policy/getInfoByAirline",'PolicyController@getInfoByAirline');
});
